package com.ax.business.prescription.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.ax.business.prescription.domain.PrescriptionMast;

@Mapper
public interface PrescriptionMastMapper {
    int deleteByPrimaryKey(Long prescriptionId);

    int insert(PrescriptionMast record);

    int insertSelective(PrescriptionMast record);

    PrescriptionMast selectByPrimaryKey(Long prescriptionId);

    int updateByPrimaryKeySelective(PrescriptionMast record);

    int updateByPrimaryKey(PrescriptionMast record);
    /**
	 * 查看个人处方详情(或全部)*医生或者系统药监
	 * 
	 * @param PrescriptionMast record
	 *           
	 * @return List<PrescriptionMast>
	 */
    List<PrescriptionMast> queryPrescriptionMapper(Map<String,Object> map);
    
    /**
	 * 分页总计数
	 * 
	 * @param Map<String,Object> map
	 *           
	 * @return Integer
	 */
    Integer count(Map<String,Object> map);
}